function switchMykj(){
    chrome.storage.sync.get("switchStaticType", function(data){
        var switchStaticType = data.switchStaticType;
        if ( switchStaticType == "on" ) {
            document.querySelector("body").classList.add("focus-fishing-4d1sada451dws1ads5a");
            var elements = document.querySelectorAll("*[style]");
            for (let i = 0; i < elements.length; i++) {
                if ( elements[i].style.backgroundImage.length > 0 ) {
                    elements[i].classList.add("focus-fishing-item-4d1sada451dws1ads5a");
                }
            }
        } else if ( switchStaticType == "off" ) {
            document.querySelector("body").classList.remove("focus-fishing-4d1sada451dws1ads5a");
            var elements = document.querySelectorAll(".focus-fishing-item-4d1sada451dws1ads5a");
            for (let i = 0; i < elements.length; i++) {
                elements[i].classList.remove("focus-fishing-item-4d1sada451dws1ads5a");
            }
        }
    });
}

switchMykj();

setInterval(async function(){
    switchMykj();
},300);